/**
 * file
 */
package com.tdkj.service.member.seller.impl;

import org.hibernate.Criteria;
import org.springframework.stereotype.Component;

import com.tdkj.model.newShop.ShopCommodity;
import com.tdkj.service.BaseService;
import com.tdkj.service.member.seller.ICommodityManagementService;
import com.tdkj.util.Page;

/**
 * 
 * FileName: CommodityManagementServiceImpl.java
 * 
 * @Description: TODO商品管理
 * 
 *               All rights Reserved, Designed By ZTE-ITS
 * 
 *               Copyright: Copyright(C) 2010-2011
 * 
 *               Company 天成科技有限公司
 * 
 * @author: 李兴建
 * 
 * @version V1.0
 * 
 *          Createdate: 2012-6-2 上午11:14:56
 * 
 * 
 * 
 *          Modification History:
 * 
 *          Date Author Version Discription
 * 
 * 
 *          
 *          ----------------------------------------------------------------------
 *          -------------
 * 
 *          2012-6-2 李兴建 1.0 1.0
 * 
 *          Why & What is modified: <修改原因描述>
 */
@Component("commodityManagementServiceImpl")
public class CommodityManagementServiceImpl extends BaseService implements ICommodityManagementService {

	@Override
	public Page queryCommodityList(ShopCommodity vo, int pageNumber, int pageSize) {
		Criteria c1 = this.getBaseDao().getSession().createCriteria(ShopCommodity.class, "a");
		// c1.add(Restrictions.eq("a.CName", "手机"));
		// Query query = this.findBy(c1, pageNumber, pageSize);
		return this.findBy(c1, pageNumber, pageSize);
	}

}
